﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Upload.aspx.cs" Inherits="ZLCMS.Web.SystemManage.Control.FileControl.Upload" %>

<script type="text/javascript">

    function UploadFileDone(event, response) {
        var retval = $.parseJSON(response);
        if (retval.stat != 0) {
            alertMsg.error(retval.msg);
        }
        else {
            var fn = retval.file.FileName;
            $('.files').html($('.files').text() + fn + '上传成功;');
            dialogReturn[dialogReturn.length] = retval.file;
        }
        return true;
    }

    
</script>

<div class="pageContent">

<form id="pageForm" method="post" runat="Server" class="pageForm">    

<div class="pageFormContent" layoutH="56">

	<div id="fileQueue" 
            style="height: 190px;	overflow: auto;	border: 1px solid #E5E5E5;	margin: 5px; ">
        <span class="files"></span>
    </div>
<%--

queueSizeLimit选项允许你设置同时处于上传队列中的文件最大数量。
--%>




</div>		
<div class="formBar">
	<ul>
        <li>
        <div class="button">

	<input id="testFileInput" type="file"
		uploader="/SystemManage/javascripts/uploadify/uploadify.swf"
		script="/SystemManage/Control/FileControl/Upload/Upload.aspx"
		multi="<%=IsMulti() %>"
		scriptData="{User:'<%=GetIdentityStr() %>', ajax:1, cfgjson:'<%= ZLCMS.Business.Util.FormatUtil.EncryptBase64(Request["cfgjson"]) %>'}"
		fileExt="<%= GetFileExt() %>"
		fileDesc="<%= GetFileExt() %>"
		queueSizeLimit = "5"
		fileQueue="fileQueue"
		onComplete="UploadFileDone"
        auto="true"/>
	

</div>
        </li>
		<li>
		    <div class="buttonActive"><div class="buttonContent"><button type="button" <%if(!String.IsNullOrEmpty(Request["tabid"])){ %> onclick="navTab.reloadFlag(<%=Request["tabid"]%>);return true;"<%}%> class="close">确定</button></div></div>
		</li>
		<li>
			<div class="button"><div class="buttonContent"><button type="button" class="close">关闭</button></div></div>
		</li>
	</ul>
</div>
		
</form>


</div>